.class public Lcom/xingbook/park/a/k;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:I

.field private b:Landroid/view/LayoutInflater;

.field private c:Lcom/xingbook/park/a/l;

.field private d:[I

.field private e:[Ljava/lang/String;

.field private f:Landroid/content/Context;


# direct methods
.method public constructor <init>(Landroid/content/Context;ILjava/util/ArrayList;Ljava/util/ArrayList;)V
    .locals 5

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    new-instance v0, Lcom/xingbook/park/a/l;

    invoke-direct {v0, p0}, Lcom/xingbook/park/a/l;-><init>(Lcom/xingbook/park/a/k;)V

    iput-object v0, p0, Lcom/xingbook/park/a/k;->c:Lcom/xingbook/park/a/l;

    iput-object p1, p0, Lcom/xingbook/park/a/k;->f:Landroid/content/Context;

    iput p2, p0, Lcom/xingbook/park/a/k;->a:I

    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/a/k;->b:Landroid/view/LayoutInflater;

    invoke-virtual {p3}, Ljava/util/ArrayList;->size()I

    move-result v2

    new-array v0, v2, [I

    iput-object v0, p0, Lcom/xingbook/park/a/k;->d:[I

    new-array v0, v2, [Ljava/lang/String;

    iput-object v0, p0, Lcom/xingbook/park/a/k;->e:[Ljava/lang/String;

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    if-lt v1, v2, :cond_0

    return-void

    :cond_0
    iget-object v3, p0, Lcom/xingbook/park/a/k;->d:[I

    invoke-virtual {p3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    aput v0, v3, v1

    iget-object v3, p0, Lcom/xingbook/park/a/k;->e:[Ljava/lang/String;

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {p4, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    invoke-virtual {v4, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    aput-object v0, v3, v1

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method public constructor <init>(Landroid/content/Context;I[I[Ljava/lang/String;)V
    .locals 1

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    new-instance v0, Lcom/xingbook/park/a/l;

    invoke-direct {v0, p0}, Lcom/xingbook/park/a/l;-><init>(Lcom/xingbook/park/a/k;)V

    iput-object v0, p0, Lcom/xingbook/park/a/k;->c:Lcom/xingbook/park/a/l;

    iput-object p1, p0, Lcom/xingbook/park/a/k;->f:Landroid/content/Context;

    iput p2, p0, Lcom/xingbook/park/a/k;->a:I

    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/a/k;->b:Landroid/view/LayoutInflater;

    iput-object p3, p0, Lcom/xingbook/park/a/k;->d:[I

    iput-object p4, p0, Lcom/xingbook/park/a/k;->e:[Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/a/k;->e:[Ljava/lang/String;

    array-length v0, v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/a/k;->e:[Ljava/lang/String;

    aget-object v0, v0, p1

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3

    if-nez p2, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/a/k;->b:Landroid/view/LayoutInflater;

    iget v1, p0, Lcom/xingbook/park/a/k;->a:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    iget-object v1, p0, Lcom/xingbook/park/a/k;->c:Lcom/xingbook/park/a/l;

    const v0, 0x7f0a00c4

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/xingbook/park/a/l;->a:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/xingbook/park/a/k;->c:Lcom/xingbook/park/a/l;

    const v0, 0x7f0a00c5

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/xingbook/park/a/l;->b:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/xingbook/park/a/k;->c:Lcom/xingbook/park/a/l;

    const v0, 0x7f0a00c3

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, v1, Lcom/xingbook/park/a/l;->c:Landroid/widget/RelativeLayout;

    iget-object v0, p0, Lcom/xingbook/park/a/k;->c:Lcom/xingbook/park/a/l;

    invoke-virtual {p2, v0}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    :goto_0
    iget-object v0, p0, Lcom/xingbook/park/a/k;->c:Lcom/xingbook/park/a/l;

    iget-object v0, v0, Lcom/xingbook/park/a/l;->a:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/xingbook/park/a/k;->f:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/park/a/k;->d:[I

    aget v2, v2, p1

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    iget-object v0, p0, Lcom/xingbook/park/a/k;->c:Lcom/xingbook/park/a/l;

    iget-object v0, v0, Lcom/xingbook/park/a/l;->b:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/xingbook/park/a/k;->e:[Ljava/lang/String;

    aget-object v1, v1, p1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-object p2

    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/a/l;

    iput-object v0, p0, Lcom/xingbook/park/a/k;->c:Lcom/xingbook/park/a/l;

    goto :goto_0
.end method
